package polyReview;

public class Test {
    //完成主人给动物喂食的输出
    public static void main(String[] args) {
        Master tom = new Master("tom");
        Food food = new Fish("黄花鱼");
        Animal animal = new Cat("小花猫");
        tom.Feed(tom,animal,food);

        food = new Bone("大棒骨");
        animal = new Dog("小黑");
        tom.Feed(tom,animal,food);
    }
}
